-- For the users of glooptest
--KALITE...................14
--ALATRO..................110
--TALINITE................317
--AKALIN..................524
--AROL....................731
--RUBY....................827
--SAPPHIRE................942
--EMERALD................1057
--TOPAZ..................1172
--AMETHYST...............1287

if(minetest.get_modpath("glooptest")) ~= nil then
-- KALITE
--craft
minetest.register_craft({
	output = '"orewood:kalitewood"',
	recipe = {
		{'glooptest:kalite_lump', 'glooptest:kalite_lump','glooptest:kalite_lump'},
		{'glooptest:kalite_lump', 'group:orewood_glooptest','glooptest:kalite_lump'},
		{'glooptest:kalite_lump', 'glooptest:kalite_lump','glooptest:kalite_lump'},
	}
})
--wood
minetest.register_node(":orewood:kalitewood", {
	description = "Kalitewood",
	paramtype2 = "facedir",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^gloopores_mineral_kalite.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_kalite=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy
minetest.register_node(":orewood:kalitepapy", {
	description = "Kalitepapy",
	drop = "glooptest:kalite_lump",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"orewood_dust_red.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "orewood_dust_red.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "orewood_dust_red.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--abm
minetest.register_abm({
	nodenames = {"orewood:kalitewood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:kalitewood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:kalitepapy"})
	end,
})
--grow
minetest.register_abm({
	nodenames = {"orewood:kalitepapy"},
	neighbors = {"orewood:kalitewood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:kalitewood"
	and name ~= "orewood:kalitewood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:kalitepapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:kalitepapy"})
	return true
end,
})

-- ALATRO
--craft
minetest.register_craft({
	output = '"orewood:alatrowood_fake"',
	recipe = {
		{'glooptest:alatro_ingot', 'glooptest:alatro_ingot','glooptest:alatro_ingot'},
		{'glooptest:alatro_ingot', 'group:orewood_glooptest','glooptest:alatro_ingot'},
		{'glooptest:alatro_ingot', 'glooptest:alatro_ingot','glooptest:alatro_ingot'},
	}
})

minetest.register_craft({
	output = '"orewood:alatrowood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'orewood:alatrowood_fake','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--cook
minetest.register_craft({
	type = "cooking",
	output = "orewood:alatrowood_hot",
	recipe = "group:orew_alatro",
})
--wood
minetest.register_node(":orewood:alatrowood", {
	description = "Alatrowood",
	paramtype2 = "facedir",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^gloopores_mineral_alatro.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_alatro=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--hot
minetest.register_node(":orewood:alatrowood_hot", {
	description = "Hot Alatrowood",
	tiles = {"default_furnace_top.png", "default_furnace_top.png", "default_coal_block.png^gloopores_alatro_ingot.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_hot=1,choppy=2,oddly_breakable_by_hand=1},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake
minetest.register_node(":orewood:alatrowood_fake", {
	description = "Fake Alatrowood",
	paramtype2 = "facedir",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^gloopores_mineral_alatro.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy
minetest.register_node(":orewood:alatropapy", {
	description = "Alatropapy",
	drop = "glooptest:alatro_lump",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"gloopores_alatro_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "gloopores_alatro_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "gloopores_alatro_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})

minetest.register_node(":orewood:alatropapy_ingot", {
	description = "Alatroingotpapy",
	drop = "glooptest:alatro_ingot",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"gloopores_alatro_block.png^orewood_cover_mf.png^[makealpha:255,0,255"},
	inventory_image = "gloopores_alatro_block.png^orewood_cover_mf.png^[makealpha:255,0,255",
	wield_image = "gloopores_alatro_block.png^orewood_cover_mf.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--abm
minetest.register_abm({
	nodenames = {"orewood:alatrowood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:alatrowood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:alatropapy"})
	end,
})

minetest.register_abm({
	nodenames = {"orewood:alatrowood_hot"},
	neighbors = {"default:lava_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:alatrowood_hot" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:alatropapy_ingot"})
	end,
})
--grow
minetest.register_abm({
	nodenames = {"orewood:alatropapy"},
	neighbors = {"orewood:alatrowood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:alatrowood"
	and name ~= "orewood:alatrowood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:alatropapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:alatropapy"})
	return true
end,
})

minetest.register_abm({
	nodenames = {"orewood:alatropapy_ingot"},
	neighbors = {"orewood:alatrowood_hot"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:alatrowood_hot"
	and name ~= "orewood:alatrowood_hot" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:lava"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:alatropapy_ingot" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:alatropapy_ingot"})
	return true
end,
})

-- TALINITE
--craft
minetest.register_craft({
	output = '"orewood:talinitewood_fake"',
	recipe = {
		{'glooptest:talinite_ingot', 'glooptest:talinite_ingot','glooptest:talinite_ingot'},
		{'glooptest:talinite_ingot', 'group:orewood_glooptest','glooptest:talinite_ingot'},
		{'glooptest:talinite_ingot', 'glooptest:talinite_ingot','glooptest:talinite_ingot'},
	}
})

minetest.register_craft({
	output = '"orewood:talinitewood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'orewood:talinitewood_fake','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--cook
minetest.register_craft({
	type = "cooking",
	output = "orewood:talinitewood_hot",
	recipe = "group:orew_talinite",
})
--wood
minetest.register_node(":orewood:talinitewood", {
	description = "Talinitewood",
	paramtype2 = "facedir",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^gloopores_mineral_talinite.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_talinite=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--hot
minetest.register_node(":orewood:talinitewood_hot", {
	description = "Hot Talinitewood",
	tiles = {"default_furnace_top.png", "default_furnace_top.png", "default_coal_block.png^gloopores_talinite_ingot.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_hot=1,choppy=2,oddly_breakable_by_hand=1},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake
minetest.register_node(":orewood:talinitewood_fake", {
	description = "Fake Talinitewood",
	paramtype2 = "facedir",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^gloopores_mineral_talinite.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy
minetest.register_node(":orewood:talinitepapy", {
	description = "Talinitepapy",
	drop = "glooptest:talinite_lump",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"gloopores_talinite_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "gloopores_talinite_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "gloopores_talinite_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})

minetest.register_node(":orewood:talinitepapy_ingot", {
	description = "Taliniteingotpapy",
	drop = "glooptest:talinite_ingot",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"gloopores_talinite_block.png^orewood_cover_mf.png^[makealpha:255,0,255"},
	inventory_image = "gloopores_talinite_block.png^orewood_cover_mf.png^[makealpha:255,0,255",
	wield_image = "gloopores_talinite_block.png^orewood_cover_mf.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--abm
minetest.register_abm({
	nodenames = {"orewood:talinitewood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:talinitewood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:talinitepapy"})
	end,
})

minetest.register_abm({
	nodenames = {"orewood:talinitewood_hot"},
	neighbors = {"default:lava_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:talinitewood_hot" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:talinitepapy_ingot"})
	end,
})
--grow
minetest.register_abm({
	nodenames = {"orewood:talinitepapy"},
	neighbors = {"orewood:talinitewood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:talinitewood"
	and name ~= "orewood:talinitewood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:talinitepapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:talinitepapy"})
	return true
end,
})

minetest.register_abm({
	nodenames = {"orewood:talinitepapy_ingot"},
	neighbors = {"orewood:talinitewood_hot"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:talinitewood_hot"
	and name ~= "orewood:talinitewood_hot" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:lava"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:talinitepapy_ingot" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:talinitepapy_ingot"})
	return true
end,
})

-- AKALIN
--craft
minetest.register_craft({
	output = '"orewood:akalinwood_fake"',
	recipe = {
		{'glooptest:akalin_ingot', 'glooptest:akalin_ingot','glooptest:akalin_ingot'},
		{'glooptest:akalin_ingot', 'group:orewood_glooptest','glooptest:akalin_ingot'},
		{'glooptest:akalin_ingot', 'glooptest:akalin_ingot','glooptest:akalin_ingot'},
	}
})

minetest.register_craft({
	output = '"orewood:akalinwood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'orewood:akalinwood_fake','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--cook
minetest.register_craft({
	type = "cooking",
	output = "orewood:akalinwood_hot",
	recipe = "group:orew_akalin",
})
--wood
minetest.register_node(":orewood:akalinwood", {
	description = "Akalinwood",
	paramtype2 = "facedir",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^gloopores_mineral_akalin.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_akalin=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--hot
minetest.register_node(":orewood:akalinwood_hot", {
	description = "Hot Akalinwood",
	tiles = {"default_furnace_top.png", "default_furnace_top.png", "default_coal_block.png^gloopores_akalin_ingot.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_hot=1,choppy=2,oddly_breakable_by_hand=1},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake
minetest.register_node(":orewood:akalinwood_fake", {
	description = "Fake Akalinwood",
	paramtype2 = "facedir",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^gloopores_mineral_akalin.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy
minetest.register_node(":orewood:akalinpapy", {
	description = "Akalinpapy",
	drop = "glooptest:akalin_lump",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"gloopores_akalin_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "gloopores_akalin_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "gloopores_akalin_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})

minetest.register_node(":orewood:akalinpapy_ingot", {
	description = "Akaliningotpapy",
	drop = "glooptest:akalin_ingot",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"gloopores_akalin_block.png^orewood_cover_mf.png^[makealpha:255,0,255"},
	inventory_image = "gloopores_akalin_block.png^orewood_cover_mf.png^[makealpha:255,0,255",
	wield_image = "gloopores_akalin_block.png^orewood_cover_mf.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--abm
minetest.register_abm({
	nodenames = {"orewood:akalinwood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:akalinwood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:akalinpapy"})
	end,
})

minetest.register_abm({
	nodenames = {"orewood:akalinwood_hot"},
	neighbors = {"default:lava_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:akalinwood_hot" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:akalinpapy_ingot"})
	end,
})
--grow
minetest.register_abm({
	nodenames = {"orewood:akalinpapy"},
	neighbors = {"orewood:akalinwood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:akalinwood"
	and name ~= "orewood:akalinwood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:akalinpapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:akalinpapy"})
	return true
end,
})

minetest.register_abm({
	nodenames = {"orewood:akalinpapy_ingot"},
	neighbors = {"orewood:akalinwood_hot"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:akalinwood_hot"
	and name ~= "orewood:akalinwood_hot" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:lava"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:akalinpapy_ingot" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:akalinpapy_ingot"})
	return true
end,
})

-- AROL
--craft
minetest.register_craft({
	output = '"orewood:arolwood"',
	recipe = {
		{'glooptest:arol_ingot', 'glooptest:arol_ingot','glooptest:arol_ingot'},
		{'glooptest:arol_ingot', 'group:orewood_glooptest','glooptest:arol_ingot'},
		{'glooptest:arol_ingot', 'glooptest:arol_ingot','glooptest:arol_ingot'},
	}
})
--wood
minetest.register_node(":orewood:arolwood", {
	description = "Arolwood",
	paramtype2 = "facedir",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^gloopores_mineral_arol.png"},
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_arol=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy
minetest.register_node(":orewood:arolpapy", {
	description = "Arolpapy",
	drop = "glooptest:arol_lump",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"orewood_dust_green.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "orewood_dust_green.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "orewood_dust_green.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--abm
minetest.register_abm({
	nodenames = {"orewood:arolwood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:arolwood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:arolpapy"})
	end,
})
--grow
minetest.register_abm({
	nodenames = {"orewood:arolpapy"},
	neighbors = {"orewood:arolwood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:arolwood"
	and name ~= "orewood:arolwood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:arolpapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:arolpapy"})
	return true
end,
})

-- RUBY
minetest.register_craft({
	output = '"orewood:rubywood_fake"',
	recipe = {
		{'glooptest:rubyblock', 'glooptest:rubyblock','glooptest:rubyblock'},
		{'glooptest:rubyblock', 'group:orewood_glooptest','glooptest:rubyblock'},
		{'glooptest:rubyblock', 'glooptest:rubyblock','glooptest:rubyblock'},
	}
})

minetest.register_craft({
	output = '"orewood:rubywood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'glooptest:rubyblock','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--wooden nodes
minetest.register_node(":orewood:rubywood", {
	description = "Rubywood",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^glooptest_mineral_ruby.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_ruby=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake nodes
minetest.register_node(":orewood:rubywood_fake", {
	description = "Fake Rubywood",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^glooptest_mineral_ruby.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy nodes
minetest.register_node(":orewood:rubypapy", {
	description = "Rubypapy",
	drop = "glooptest:ruby_gem",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"glooptest_ruby_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "glooptest_ruby_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "glooptest_ruby_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--ABMs srpout
minetest.register_abm({
	nodenames = {"orewood:rubywood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:rubywood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:rubypapy"})
	end,
})
--ABMs grow
minetest.register_abm({
	nodenames = {"orewood:rubypapy"},
	neighbors = {"orewood:rubywood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:rubywood"
	and name ~= "orewood:rubywood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:rubypapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:rubypapy"})
	return true
end,
})

-- SAPPHIRE
minetest.register_craft({
	output = '"orewood:sapphirewood_fake"',
	recipe = {
		{'glooptest:sapphireblock', 'glooptest:sapphireblock','glooptest:sapphireblock'},
		{'glooptest:sapphireblock', 'group:orewood_glooptest','glooptest:sapphireblock'},
		{'glooptest:sapphireblock', 'glooptest:sapphireblock','glooptest:sapphireblock'},
	}
})

minetest.register_craft({
	output = '"orewood:sapphirewood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'glooptest:sapphireblock','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--wooden nodes
minetest.register_node(":orewood:sapphirewood", {
	description = "Sapphirewood",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^glooptest_mineral_sapphire.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_sapphire=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake nodes
minetest.register_node(":orewood:sapphirewood_fake", {
	description = "Fake Sapphirewood",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^glooptest_mineral_sapphire.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy nodes
minetest.register_node(":orewood:sapphirepapy", {
	description = "Sapphirepapy",
	drop = "glooptest:sapphire_gem",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"glooptest_sapphire_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "glooptest_sapphire_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "glooptest_sapphire_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--ABMs srpout
minetest.register_abm({
	nodenames = {"orewood:sapphirewood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:sapphirewood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:sapphirepapy"})
	end,
})
--ABMs grow
minetest.register_abm({
	nodenames = {"orewood:sapphirepapy"},
	neighbors = {"orewood:sapphirewood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:sapphirewood"
	and name ~= "orewood:sapphirewood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:sapphirepapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:sapphirepapy"})
	return true
end,
})

-- EMERALD
minetest.register_craft({
	output = '"orewood:emeraldwood_fake"',
	recipe = {
		{'glooptest:emeraldblock', 'glooptest:emeraldblock','glooptest:emeraldblock'},
		{'glooptest:emeraldblock', 'group:orewood_glooptest','glooptest:emeraldblock'},
		{'glooptest:emeraldblock', 'glooptest:emeraldblock','glooptest:emeraldblock'},
	}
})

minetest.register_craft({
	output = '"orewood:emeraldwood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'glooptest:emeraldblock','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--wooden nodes
minetest.register_node(":orewood:emeraldwood", {
	description = "Emeraldwood",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^glooptest_mineral_emerald.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_emerald=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake nodes
minetest.register_node(":orewood:emeraldwood_fake", {
	description = "Fake Emeraldwood",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^glooptest_mineral_emerald.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy nodes
minetest.register_node(":orewood:emeraldpapy", {
	description = "Emeraldpapy",
	drop = "glooptest:emerald_gem",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"glooptest_emerald_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "glooptest_emerald_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "glooptest_emerald_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--ABMs srpout
minetest.register_abm({
	nodenames = {"orewood:emeraldwood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:emeraldwood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:emeraldpapy"})
	end,
})
--ABMs grow
minetest.register_abm({
	nodenames = {"orewood:emeraldpapy"},
	neighbors = {"orewood:emeraldwood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:emeraldwood"
	and name ~= "orewood:emeraldwood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:emeraldpapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:emeraldpapy"})
	return true
end,
})

-- TOPAZ
minetest.register_craft({
	output = '"orewood:topazwood_fake"',
	recipe = {
		{'glooptest:topazblock', 'glooptest:topazblock','glooptest:topazblock'},
		{'glooptest:topazblock', 'group:orewood_glooptest','glooptest:topazblock'},
		{'glooptest:topazblock', 'glooptest:topazblock','glooptest:topazblock'},
	}
})

minetest.register_craft({
	output = '"orewood:topazwood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'glooptest:topazblock','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--wooden nodes
minetest.register_node(":orewood:topazwood", {
	description = "Topazwood",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^glooptest_mineral_topaz.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_topaz=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake nodes
minetest.register_node(":orewood:topazwood_fake", {
	description = "Fake Topazwood",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^glooptest_mineral_topaz.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy nodes
minetest.register_node(":orewood:topazpapy", {
	description = "Topazpapy",
	drop = "glooptest:topaz_gem",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"glooptest_topaz_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "glooptest_topaz_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "glooptest_topaz_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--ABMs srpout
minetest.register_abm({
	nodenames = {"orewood:topazwood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:topazwood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:topazpapy"})
	end,
})
--ABMs grow
minetest.register_abm({
	nodenames = {"orewood:topazpapy"},
	neighbors = {"orewood:topazwood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:topazwood"
	and name ~= "orewood:topazwood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:topazpapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:topazpapy"})
	return true
end,
})

-- AMETHYST
minetest.register_craft({
	output = '"orewood:amethystwood_fake"',
	recipe = {
		{'glooptest:amethystblock', 'glooptest:amethystblock','glooptest:amethystblock'},
		{'glooptest:amethystblock', 'group:orewood_glooptest','glooptest:amethystblock'},
		{'glooptest:amethystblock', 'glooptest:amethystblock','glooptest:amethystblock'},
	}
})

minetest.register_craft({
	output = '"orewood:amethystwood"',
	recipe = {
		{'group:stone', 'group:wood','group:stone'},
		{'group:wood', 'glooptest:amethystblock','group:wood'},
		{'group:stone', 'group:wood','group:stone'},
	}
})
--wooden nodes
minetest.register_node(":orewood:amethystwood", {
	description = "Amethystwood",
	tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png^glooptest_mineral_amethyst.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_amethyst=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--fake nodes
minetest.register_node(":orewood:amethystwood_fake", {
	description = "Fake Amethystwood",
	tiles = {"default_jungletree_top.png", "default_jungletree_top.png", "default_tree.png^glooptest_mineral_amethyst.png"},
	paramtype2 = "facedir",
	is_ground_content = false,
	groups = {orewood_glooptest=1,orew_fake=1,tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
	sounds = default.node_sound_wood_defaults(),

	on_place = minetest.rotate_node
})
--papy nodes
minetest.register_node(":orewood:amethystpapy", {
	description = "Amethystpapy",
	drop = "glooptest:amethyst_gem",
	drawtype = "plantlike",
	stack_max = 999,
	tiles = {"glooptest_amethyst_block.png^orewood_cover_mp.png^[makealpha:255,0,255"},
	inventory_image = "glooptest_amethyst_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	wield_image = "glooptest_amethyst_block.png^orewood_cover_mp.png^[makealpha:255,0,255",
	paramtype = "light",
	walkable = false,
	is_ground_content = true,
	selection_box = {
		type = "fixed",
		fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}
	},
	groups = {snappy=3,flammable=2},
	sounds = default.node_sound_leaves_defaults(),

	after_dig_node = function(pos, node, metadata, digger)
		default.dig_up(pos, node, digger)
	end,
})
--ABMs srpout
minetest.register_abm({
	nodenames = {"orewood:amethystwood"},
	neighbors = {"default:water_source"},
	interval = 40,
	chance = 10,
	action = function(pos, node)
	local height = 0
	while node.name == "orewood:amethystwood" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:amethystpapy"})
	end,
})
--ABMs grow
minetest.register_abm({
	nodenames = {"orewood:amethystpapy"},
	neighbors = {"orewood:amethystwood"},
	interval = 50,
	chance = 20,
	action = function(pos, node)
	pos.y = pos.y-1
	local name = minetest.get_node(pos).name
	if name ~= "orewood:amethystwood"
	and name ~= "orewood:amethystwood" then
		return
	end
	if not minetest.find_node_near(pos, 3, {"group:water"}) then
		return
	end
	pos.y = pos.y+1
	local height = 0
	while node.name == "orewood:amethystpapy" and height < 4 do
		height = height+1
		pos.y = pos.y+1
		node = minetest.get_node(pos)
	end
	if height == 4
	or node.name ~= "air" then
		return
	end
	minetest.set_node(pos, {name="orewood:amethystpapy"})
	return true
end,
})

end